﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Phone.Controls;

namespace FinanceCalculators.Views.HomeValueProjection
{
    public partial class ProjectionResult : PhoneApplicationPage
    {
        public ProjectionResult()
        {
            InitializeComponent();
        }

        private void PhoneApplicationPage_Loaded(object sender, RoutedEventArgs e)
        {
            string phm = "";
            string hp = "";
            string lp = "";
            string value = "";
            NavigationContext.QueryString.TryGetValue("phm", out phm);
            NavigationContext.QueryString.TryGetValue("hp", out hp);
            NavigationContext.QueryString.TryGetValue("lp", out lp);
            NavigationContext.QueryString.TryGetValue("value", out value);
            txtProjectedHomeValue.Text = phm.ToString();
            txtHighProjection.Text = hp.ToString();
            txtLowProjection.Text = lp.ToString();
            string text = value;
            tbProjectedHome.Text = text + "$" + "growing annualy";
        }

       

        private void ApplicationBarIconButton_Click(object sender, EventArgs e)
        {
            NavigationService.GoBack();
        }
    }
}